import java.util.regex.*;

public class Programa15{
	public static void main(String [] a){
		Pattern p = Pattern.compile("ab[0-9]");
		Matcher m = p.matcher("12xxab_zzab23qqqabd");
		boolean b = false;
		String s = " ";
		while(b = m.find()){
			System.out.println(" " + m.group());
		}
	}
}

